package com.bwie.remote.fall;

import com.bwie.common.domain.User;
import com.bwie.common.result.Result;
import com.bwie.remote.UserRemote;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @className: UserRemoteFall
 * @Description: TODO
 * @version: v1.８.0
 * @author: 刘茂锴
 * @date: 2025/10/13 10:30
 */
@Component
public class UserRemoteFall implements FallbackFactory<UserRemote> {
    @Override
    public UserRemote create(Throwable cause) {
        return new UserRemote() {
            @Override
            public Result<User> selectPhoneByUser(String phone) {
                return Result.error("用户信息调用失败....");
            }
        };
    }
}
